import service from '@/utils/http.js'

// 查询对应小程序的配置信息
export const index = (params) => {
  return service({
    url: 'api/Home/getAppletConfig',
    method: 'post',
    data : params
  }) 
}
// 获取微信小程序场馆列表
export const getVenusList = (params) => {
	return service({
		url: 'api/Home/getVenusList',
		method: 'post',
		data : params
	})
}

// 获取微信小程序新闻资讯
export const getNewsList = (params) => {
	return service({
		url: 'api/Home/getNewsList',
		method: 'post',
		data : params
	})
}

// 获取微信小程序新闻资讯详情
export const getNewsDetail = (params) => {
	return service({
		url: 'api/Home/getNewsDetail',
		method: 'post',
		data : params
	})
}

// 微信小程序新闻资讯列表加载更多
export const getNewsListMore = (params) => {
	return service({
		url: 'api/Home/getNewsListMore',
		method: 'post',
		data : params
	})
}

//获取市
export const getCity = (params) => {
	return service({
		url: 'api/Home/getCitys',
		method: 'post',
		data : params
	})
}


// 首页资讯更多列表
// POST /api/Subscribe/send
export const getIndustryInfoMore = (params) => {
    return service({
      url: 'api/index/getIndustryInfoMore',
      method: 'post',
      data: params
    }) 
}


// 首资讯列表顶部标签分类
// POST /sass-test/public/index.php/api/index/getInfoList
export const getInfoList = (params) => {
    return service({
      url: 'api/index/getInfoList',
      method: 'post',
      data: params
    }) 
}

// 动态列表

// POST /sass-test/public/index.php/api/index/venueTrends
export const venueTrends = (params) => {
    return service({
      url: 'api/index/venueTrends',
      method: 'post',
      data: params
    }) 
}


// 动态详情

// POST /sass-test/public/index.php/api/index/trendsDetail
export const trendsDetail = (params) => {
    return service({
      url: 'api/index/trendsDetail',
      method: 'post',
      data: params
    }) 
}


// 首页金刚区分类产品
// POST /sass-test/public/index.php/api/index/getProductByWindows
export const getProductByWindows = (params) => {
    return service({
      url: 'api/index/getProductByWindows',
      method: 'post',
      data: params
    }) 
}

// 首页分类列表
// /sass-test/public/index.php/api/index/getWindowsList
export const getWindowsList = (params) => {
    return service({
      url: 'api/index/getWindowsList',
      method: 'post',
      data: params
    }) 
}


// 超时订单提交触发
// //sass-test/public/index.php/api/payovertime/getCourtInfo
export const getCourtInfo = (params) => {
    return service({
      url: 'api/PayOverTime/getCourtInfo',
      method: 'post',
      data: params
    }) 
}



// 超时场地确定后
// /sass-test/public/index.php/api/payovertime/getPrice
export const getPrice = (params) => {
    return service({
      url: 'api/PayOverTime/getPrice',
      method: 'post',
      data: params
    }) 
}


// 超时场地确定后
// /sass-test/public/index.php/api/payovertime/getPrice
export const checkNoPayOrder = (params) => {
    return service({
      url: 'api/PayOverTime/checkNoPayOrder',
      method: 'post',
      data: params
    }) 
}

// 行业动态轮播
// /sass-test/public/index.php/api/index/getBanner
export const getBanner = (params) => {
    return service({
      url: 'api/index/getBanner',
      method: 'post',
      data: params
    }) 
}

// 首页购买产品展示
export const getOrderFive = (params) => {
    return service({
      url: 'api/index/getOrderFive',
      method: 'post',
      data: params
    }) 
}


// GET /sass-test/public/index.php/api/index/get_component
export const get_component = (params) => {
    return service({
      url: 'api/index/get_component',
      method: 'post',
      data: params
    }) 
}


// GET /sass-test/public/index.php/api/index/getVenusProduct
export const getVenusProduct = (params) => {
    return service({
      url: 'api/index/getVenusProduct',
      method: 'post',
      data: params
    }) 
}

// GET /sass-test/public/index.php/api/index/getVenusProduct
export const getBuyNoCard = (params) => {
    return service({
      url: 'api/shop/getBuyNoCard',
      method: 'post',
      data: params
    }) 
}

// GET /sass-test/public/index.php/api/index/getVenusProduct
export const getTrainProductByHot = (params) => {
    return service({
      url: 'api/shop/getTrainProductByHot',
      method: 'post',
      data: params
    }) 
}
// GET /sass-test/public/index.php/api/index/getVenusProduct
export const getRaceProductByHot = (params) => {
    return service({
      url: 'api/shop/getRaceProductByHot',
      method: 'post',
      data: params
    }) 
}

// 车牌列表
export const platelist = (params) => {
    return service({
      url: 'api/plate/list',
      method: 'post',
      data: params
    }) 
}
// 保存车牌
export const platesub = (params) => {
    return service({
      url: 'api/plate/sub',
      method: 'post',
      data: params
    }) 
}
// 删除车牌
export const platedel = (params) => {
    return service({
      url: 'api/plate/del',
      method: 'post',
      data: params
    }) 
}
// 查询停车费
export const plateinfo = (params) => {
    return service({
      url: 'api/plate/info',
      method: 'post',
      data: params
    }) 
}
// 查询停车费-创建订单
export const platecreate = (params) => {
    return service({
      url: 'api/plate/create',
      method: 'post',
      data: params
    }) 
}
// 查询停车费-发起支付
export const platepay = (params) => {
    return service({
      url: 'api/plate/pay',
      method: 'post',
      data: params
    }) 
}
//活动日历
export const getRaceByDay = (params) => {
    return service({
      url: 'api/shop/getRaceByDay',
      method: 'post',
      data: params
    }) 
}
//活动日历
export const getRaceDate = (params) => {
    return service({
      url: 'api/shop/getRaceDate',
      method: 'post',
      data: params
    }) 
}

export const rules = (params) => {
    return service({
      url: 'api/plate/rules',
      method: 'post',
      data: params
    }) 
}
export const getParamsConfig = (params) => {
    return service({
      url: 'api/index/getParamsConfig',
      method: 'post',
      data: params
    }) 
}

export const getMyParkCoupon = (params) => {
    return service({
      url: 'api/coupon/getMyParkCoupon',
      method: 'post',
      data: params
    }) 
}
